package lt.marsrutai.mobile.android.activity.intent;

import lt.marsrutai.mobile.android.activity.FastestRoutesResultMapActivity;
import lt.marsrutai.mobile.android.model.Route;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class FastestRoutesResultMapIntentHolder extends IntentHolder {

    private static final String SCOPE_FOLDER = "scope";
    private static final String ROUTE = "route";

    public FastestRoutesResultMapIntentHolder(Activity sourceActivity) {
        super(sourceActivity, FastestRoutesResultMapActivity.class);
    }

    public FastestRoutesResultMapIntentHolder(Intent intent) {
        super(intent);
    }

    public FastestRoutesResultMapIntentHolder(Bundle bundle) {
        super(bundle);
    }

    public void setScopeFolder(String scopeFolder) {
        intent.putExtra(SCOPE_FOLDER, scopeFolder);
    }

    public String getScopeFolder() {
        return intent.getStringExtra(SCOPE_FOLDER);
    }

    public void setRoute(Route route) {
        intent.putExtra(ROUTE, route);
    }
    
    public Route getRoute() {
        return intent.getParcelableExtra(ROUTE);
    }
}
